/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dings
 * Date: 2024-05-19
 * Time: 9:00
 */
public abstract class Animal {
    public String name;
    public int age;

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }

    abstract class A extends Animal {

        public A(String name, int age) {
            super(name, age);
        }
    }
    public abstract void eat();
}
